package com.tensquare.article.config;

import com.baomidou.mybatisplus.extension.plugins.inner.PaginationInnerInterceptor;
import org.springframework.context.annotation.Bean;
import org.springframework.context.annotation.Configuration;

/**
 * @Description: 描述
 * @Author：XiaoBing
 * @Date：2021/1/4 16:28
 * @Version：1.0
 */
@Configuration
public class MybatisPlusConfig {

    /**
     * 分页bean
     * @return
     */
    @Bean
    public PaginationInnerInterceptor paginationInterceptor() {
        return new PaginationInnerInterceptor();
    }
}
